home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1997 August / Walnut Creek CDROM.7z / VOL_400 / 460_01 / DOC / GUIDELIN.TXT < prev    next >
Encoding:
Text File  |  1996-03-01  |  1.0 KB  |  26 lines

  1.  
  2.  
  3.                      GENERAL GUIDELINES ABOUT YACL USAGE
  4.                      
  5.  
  6. 1. Always remember: event dependent methods must return TRUE. If an event
  7. dependent method returns FALSE, that means that no other event dependents
  8. will be notified of the event. So if you ever find that your event-dependent
  9. method is not getting called, it's probably because some other event
  10. dependent method returned FALSE.
  11.  
  12. 2. On the other hand, virtual event handling methods on classes derived from
  13. VisualObject must return FALSE. If a handler method returns TRUE, the event
  14. will not be sent further up the view tree.
  15.  
  16.  
  17. 3. Here are a few hints on debugging under Windows and OS/2.
  18.  
  19.     - I've often found the need to trace a program during a particular
  20.       event, e.g., a paint event. You can use CL_Error::Warning in
  21.       such a situation, but only if you compile ui/applic.obj with the
  22.       DEBUG symbol defined. Doing this will cause the application to
  23.       put up an auxiliary window in which are written all messages
  24.       produced by the CL_Error methods.
  25.  
  26.